package com.atguigu.day21.homework.h1;

import org.junit.Test;

import java.io.*;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/26 20:14
 * @注释
 */
public class HomeWorkTest {
    @Test
    public void test01() throws IOException {

        File f = new File("D:\\testIO");
        f.mkdir();

        File f1 = new File("D:\\testIO\\1.txt");
        f1.createNewFile();

    }

    @Test
    public void test() throws IOException {
        File f = new File("testIO");
        f.mkdir();
        File f1 = new File("testIO\\1.txt");
        f1.createNewFile();
    }
}
